﻿@model LetLord.Models.Tenant

<div class="row-fluid">
    @if (Model.Viewings.Count == 0)
    {
        <h3>You have no upcoming viewings to attend! <a href="/">Search now?</a></h3>
    }
    else
    {
        foreach (var viewing in Model.Viewings)
        {
         
        <div class="display-label">
            @viewing.ResidentialProperty.Address.Line1
        </div>
        <div class="display-field">
            @viewing.ResidentialProperty.Address.Line1
        </div>
        <div class="display-label">
            @viewing.ResidentialProperty.Address.Line2
        </div>
        <div class="display-field">
            @viewing.ResidentialProperty.Address.Line2
        </div>
        <div class="display-label">
            @viewing.ResidentialProperty.Address.TownCity
        </div>
        <div class="display-field">
            @viewing.ResidentialProperty.Address.TownCity
        </div>
        <div class="display-label">
            @viewing.ViewingDate
        </div>
        <div class="display-field">
            @viewing.ViewingDate
        </div>
        <div class="display-label">
            @viewing.StartTime
        </div>
        <div class="display-field">
            @viewing.StartTime
        </div>
        <div class="display-label">
            @viewing.EndTime
        </div>
        <div class="display-field">
            @viewing.EndTime
        </div>
        }
    }
</div>
